
/**
 * @fileoverview Defines 'forms' namespace.
 * @link http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml
 * @link https://developers.google.com/closure/compiler/docs/js-for-compiler
 */


/**
 * Defines 'forms' namespace.
 * @namespace Defines 'forms' namespace.
 */
var forms = forms || {};


/**
 * Initializes HTML5 form features: placeholder, validation, etc.
 * @param {Element} container The HTML container which contains form elements.
 * @static
 * @example
 * forms.init(document.forms[0]);
 */
forms.init = function(container) {
  (new forms.PlaceHolder).init(container);
  (new forms.Validation).init(container);
};
